//
//  RelatedTableViewCell.swift
//  fsapp
//
//  Created by zguang on 17/8/2.
//  Copyright © 2017年 huangshengjie. All rights reserved.
//

import UIKit

class RelatedTableViewCell: UITableViewCell {
    
    let leftImage = UIImageView()
    let title = UILabel()
    let playTime = UILabel()
    let playCount = UILabel()

    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        setUI()
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }
    
    func setUI(){
        
        leftImage.frame = CGRect(x:width(20),y:height(13),width:width(240),height:height(147))
        
         title.frame = CGRect(x:width(295),y:height(13),width:width(422),height:height(80))
        title.numberOfLines = 0;
         title.font = UIFont.systemFont(ofSize: height(28))
         playTime.frame = CGRect(x:width(295),y:height(140),width:width(0),height:height(0))
         playTime.font = UIFont.systemFont(ofSize: height(26))
         playTime.textColor = title2color
        
        playCount.frame = CGRect(x:width(587),y:height(140),width:width(0),height:height(0))
        playCount.font = UIFont.systemFont(ofSize: height(26))
        playCount.textColor = title2color
        self.addSubview(leftImage)
        self.addSubview(title)
        self.addSubview(playTime)
        self.addSubview(playCount)
    }
    
    

}
